/*
 * Copyright (c) 2006-2021, Ulandlink Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2021-09-18     lfz         first version
 */
#include "app_led_drv.h"
#include "app_led_srv.h"

#define LOG_TAG                    "led.tack"
#define LOG_LVL                    LOG_LVL_INFO
#include "ulog.h"

int32_t app_led_tack(void)
{
    if (app_led_drv_init() != RT_EOK){
        LOG_E("led drv init fail.");
        return -RT_ERROR;
    }
    
    if (app_led_srv_init() != RT_EOK){
        LOG_E("led srv init fail.");
        return -RT_ERROR;
    }
	
	if (led_test_init() != RT_EOK){
        LOG_E("led srv init fail.");
        return -RT_ERROR;
    }
    
    LOG_D("led tack init OK.");
    return RT_EOK;
}
INIT_APP_EXPORT(app_led_tack);

/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
